import axios, { AxiosError } from 'axios'

const axiosInstance = axios.create()
axiosInstance.defaults.withCredentials = true
axiosInstance.defaults.baseURL = ''
axiosInstance.interceptors.request.use(
    value => {
        console.log('request interceptors success==========>', value)
        return value
    }, (error : AxiosError) => {
        console.log('request interceptors error===========>', error)
    })

axiosInstance.interceptors.response.use(
    value => {
        console.log('response interceptors success==========>', value)
        return value
    }, (error : AxiosError) => {
        console.log('response interceptors error===========>', error)
    })


export default axiosInstance
